package com.topisv.tms.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.topisv.tms.entity.QueryParamHolder;
import com.topisv.tms.entity.ViewLogisticsCompanyNO;
import com.topisv.tms.repository.ViewLogisticsCompanyDao;
import com.topisv.tms.service.base.BaseService;

@Component
@Transactional(readOnly=true)
public class ViewLogisticsCompanyServics extends BaseService{
	@Autowired
	private ViewLogisticsCompanyDao viewlogisticsCompanyDao;
	
	public Page<ViewLogisticsCompanyNO> findMailNoByCompanyCode(QueryParamHolder paramHolder){
		Page<ViewLogisticsCompanyNO> view = findByJson(paramHolder, viewlogisticsCompanyDao, ViewLogisticsCompanyNO.class);
		return view;
	}
	
	public List<ViewLogisticsCompanyNO> findMailNo(){
		return viewlogisticsCompanyDao.findMailNo();
	}
}
